﻿namespace Token.Piker.Common
{
     public class GlobalConstants
    {
        /// <summary>
        /// 不允许实例化
        /// </summary>
        private GlobalConstants()
        {
        }
        /// <summary>
        /// 管理员Session的Key
        /// </summary>
        public static readonly string PIKER_ADMIN = "SESSION.ADMIN.KEY";
        /// <summary>
        /// 用户Session的Key
        /// </summary>
        public static readonly string PIKER_USER_ID = "SESSION.USER.KEY";
        /// <summary>
        /// 用户Session的用户名
        /// </summary>
        public static readonly string PIKER_USER_NAME = "SESSION.USER.NAME";
        public static readonly int[,] Photo_Size = { { 210, 420, 630, 1200 }, { 280, 560, 840, 1600 } };   //图片的四种尺寸
    }

    /// <summary>
    /// Piker中表的枚举
    /// </summary>
    public enum PikerTables
    {
        t_User = 1,
        t_Tag = 2,
        t_Slide = 3,
        t_Photo = 4,
        t_NewsPhoto = 5,
        t_NewsAlbum = 6,
        t_Album = 7,
        t_Admin = 8,
        t_Activity = 9,
        r_UserActivity = 10,
        r_Top = 11,
        r_PhotoTag = 12,
        r_PhotoLike = 13,
        r_Pcomment = 14,
        r_Message = 15,
        r_AlbumActivity = 16,
        r_Acomment = 17
    }

    /// <summary>
    /// 对表增、删、查、改操作的枚举
    /// </summary>
    public enum TableOperations
    {
        Select=0,
        Insert=1,
        Delete=2,
        Update=3
    }
}
